class DoubanMovie {

//  alt: "https://movie.douban.com/subject/1292052/"
//  casts: [,…]
//  collect_count: 2905411
//  directors: [,…]
//  durations: ["142分钟"]
//  genres: ["犯罪", "剧情"]
//  has_video: true
//  id: "1292052"
//  images: {small: "https://img9.doubanio.com/view/photo/s_ratio_poster/public/p480747492.webp",…}
//  large: "https://img9.doubanio.com/view/photo/s_ratio_poster/public/p480747492.webp"
//  medium: "https://img9.doubanio.com/view/photo/s_ratio_poster/public/p480747492.webp"
//  small: "https://img9.doubanio.com/view/photo/s_ratio_poster/public/p480747492.webp"
//  mainland_pubdate: ""
//  original_title: "The Shawshank Redemption"
//  pubdates: ["1994-09-10(多伦多电影节)", "1994-10-14(美国)"]
//  rating: {max: 10, average: 9.7, details: {1: 1573, 2: 1275, 3: 20925, 4: 214496, 5: 1360660}, stars: "50",…}
//  subtype: "movie"
//  title: "肖申克的救赎"
//  year: "1994"


  String id;
  String title;
  String year;

  DoubanMovie(this.id);

  DoubanMovie.fromJson(Map<String, dynamic> json)
      : id = json['id'],
        year = json['year'],
        title = json['title'];

  Map<String, dynamic> toJson() => {
    'id': id,
    'year': year,
    'title': title,
  };

}